<?php	session_start();	require_once ($_SERVER['DOCUMENT_ROOT']. "/_config/config.php");		require_once(MODEL_DIR.'/order_model.php');	require_once(HELPER_DIR.'/helper.php');		$action = '';	$id = '';	$qty = '';	$cartProduct = null;		if(isset($_GET['action']))	{		$action = $_GET['action'];		$id = $_GET['id'];	}		if($action == 'remove')	{		unset($_SESSION['cart'][$id]);		header("Location: cart.php");		exit();	}		if($action == 'change')	{		$id = $_GET['id'];		$qty = $_GET['qty'];		$_SESSION['cart'][$id] = $qty;		header("Location: cart.php");		exit();	}	if(isset($_SESSION['cart']))	{		$countProduct = count($_SESSION['cart']);		if($countProduct > 0)			$cartProduct = GetCartProduct($_SESSION['cart']);		else			$cartProduct = null;	}		//render	require_once('cart_view.phtml');?>